package com.Logistics.feign;

import com.Logistics.entity.Area;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "pd-aggregation",path = "/area")
public interface AreaFeignClient {
    @GetMapping("/getAreaByAreaCode/{areaCode}")
    public Area getAreaByAreaCode(@PathVariable String areaCode);
}
